<div class="row">
    <div class="col-md-12">
        <div class="box">
            <div class="box-header with-border">
                <h3 class="box-title"><a href="/news/add/news"><button type="button" class="btn btn-block btn-default">新增内容</button></a></h3>
            </div>
            <!-- /.box-header -->
            <div class="box-body">
                <table class="table table-bordered">
                    <tbody><tr>
                        <th style="width: 10px">ID</th>
                        <th>标题</th>
                        <th>分类</th>
                        <th>排序</th>
                        <th>创建时间</th>
                        <th>修改时间</th>
                        <th></th>
                    </tr>
                    {{range $i, $v := .list}}
                    <tr>
                        <td>{{$v.ID}}</td>
                        <td>{{$v.Title}}</td>
                        <td>{{$v.CategoryName}}</td>
                        <td>{{$v.Sort}}</td>
                        <td>{{$v.CreatedAt | TimeToDate}}</td>
                        <td>{{$v.UpdatedAt | TimeToDate}}</td>
                        <td>
                            <a href="/news/update/news/{{$v.ID}}"><span class="label label-primary">更新</span></a>
                            <a onclick="javascript:return confirm('确认删除?')" href="/news/del/news/{{$v.ID}}"><span class="label label label-danger">删除</span></a>
                        </td>
                    </tr>
                    {{end}}
                    </tbody>
                </table>
            </div>
            <!-- /.box-body -->
            {{.PageHtml | strToHtml}}
        </div>
    </div>
</div>